<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Login User</title>
    </h:head>
    <body>

        <ui:composition template="./UserTemplate.xhtml">



            <ui:define name="content">
                <center>

                    <h1><b>Login User Easy Tickets</b></h1>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <table width="446" height="216" border="0" cellpadding="0" cellspacing="0">
                       
                        <tr>

                            <th width="124"><div align="left"><span>Email:</span></div></th>
                            <td width="90"><p:inputText id="email" value="#{customerBean.cu.email}" required="true" requiredMessage="User name is not null"/>
                                <h:messages for="email" style="font-size: smaller;font-weight: normal;color: red"/>

                          </td>

                        </tr>
                        <tr>
                            <th><div align="left"><span>Password:</span></div></th>
                            <td><p:password feedback="" minLength="6" id="password" value="#{customerBean.cu.password}" required="true" requiredMessage="Password is not null"/>
                                <h:messages for="password" style="font-size: smaller;font-weight: normal;color: red"/>
                                <h:outputText id="display" value="#{customerBean.msg3}" style="font-size: smaller;font-weight: normal;color: red"/>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>  <h:commandButton value="Login" action="#{customerBean.loginUser}" styleClass="submit-login"/>


                            </td>
                            <td width="198">
                                 <h:commandButton action="Register.xhtml" type="image" image="../resources/images/login/icon_register.gif"/>
                          </td>
                        </tr>

                  </table>


                </center>


            </ui:define>



        </ui:composition>

    </body>
</html>
